package com.witmore.skyline.db.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.witmore.skyline.db.entity.CameraDO;
import com.witmore.skyline.db.mapper.dto.CameraListQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 摄像头表 Mapper 接口
 * </p>
 *
 * @author 豆子高
 * @since 2025-02-24
 */
@Mapper
public interface CameraMapper extends BaseMapper<CameraDO> {

    int selectCountCustom(@Param("query") CameraListQuery query);

    Page<CameraDO> selectPageCustom(Page<CameraDO> page, @Param("query") CameraListQuery query);
}
